From: Philip Withnall Date: Wed, 5 Mar 2025 11:32:48 +0000 (+0000) Subject: timeLimitsManager: Remove a redundant fallback value X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~143^2^2~31 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7183e75f052da2f8c169b69eda4df8b934ec5da0;p=gnome-shell.git timeLimitsManager: Remove a redundant fallback value This code was originally copied from `lightbox.js`, where the fallback is potentially useful because the duration is provided as an argument. The `timeLimitsManager` uses a constant as the duration, though, so the fallback is just confusing. Spotted in https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3655#note_2369352 Signed-off-by: Philip Withnall Part-of: --- diff --git a/js/misc/timeLimitsManager.js b/js/misc/timeLimitsManager.js index 776076464..294175398 100644 --- a/js/misc/timeLimitsManager.js +++ b/js/misc/timeLimitsManager.js @@ -957,7 +957,7 @@ class TimeLimitsDispatcher extends GObject.Object { Main.layoutManager.uiGroup.ease_property( '@effects.desaturate.factor', GRAYSCALE_SATURATION, { - duration: GRAYSCALE_FADE_TIME_SECONDS * 1000 || 0, + duration: GRAYSCALE_FADE_TIME_SECONDS * 1000, mode: Clutter.AnimationMode.EASE_OUT_QUAD, }); } else {